package com.mmall.controller.threadLocal;

import com.mmall.example.threadLocal.RequestHolder;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * threadLocal
 * Created by megan on 2018/3/31.
 */
@Controller
@RequestMapping("/threadLocal/")
public class ThreadLocalController {

    @RequestMapping("test")
    @ResponseBody
    public Long test(){
        return RequestHolder.get();
    }
}
